//拼团订单提交
exports.bulk_purchase_order_pay = function (req, res) {

    //获取restful参数
    var restfulParams = req.routeInfo.restfulParams;

    //最终结果
    var resultData = {};

    //任务流创建
    async.waterfall([
        function (cb) {
            R.SEND_HTTP(
                req,
                {
                    url: CORE_APIConfig.coreAPI.organization_activity_detail_info + "/oa_id/1",
                    method: 'POST',
                    data: {
                        fields: ["oc_title","oc_title_image","oc_course_count","oc_new_price"].join(",")
                    }
                },
                function (err, data) {
                    //判断是否有错误信息
                    if (err) {
                        return cb(err, data);
                    }

                    resultData.activityCourseData = data.data;
                    cb();
                }
            );

        },
        ], function (err, result) {

            //返回最终拼接结果
            RES.response(res, true, resultData);

        }
    );

}